<template>
	<view class="userfunclist">
		<view class="one">
			<view class="one-top">
				我的交易
			</view>
			<view class="one-bottom">
				<view class="list" v-for="(item, index) in top_list" :key="index" hover-class="unlist">
					<view class="num">
						{{ item.num }}
					</view>
					<view class="text">
						{{ item.name }}
					</view>
				</view>
			</view>
		</view>
		<view class="two">
			<view class="two-top">
				<text class="left">推荐工具</text>
				<text class="right">更多 ></text>
			</view>
			<view class="two-bottom">
				<view class="list" v-for="(item, index) in bottom_list" :key="index" hover-class="unlist">
					<image src="../../static/kefu.png" mode="" class="img"></image>
					<view class="text">
						{{ item.name }}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				top_list: [
					{
						num: 5,
						name: '我发布的'
					},
					{
						num: 0,
						name: '我出租的'
					},
					{
						num: 1,
						name: '我租到的'
					},
					{
						num: 2,
						name: '我的收藏'
					}
				],
				bottom_list: [
					{
						name: '客服中心'
					},
					{
						name: '客服中心'
					},
					{
						name: '客服中心'
					},
					{
						name: '客服中心'
					},
					{
						name: '客服中心'
					},
					{
						name: '客服中心'
					},
					{
						name: '客服中心'
					},
					{
						name: '客服中心'
					}
				]
			};
		}
	}
</script>

<style lang="scss" scoped>
.userfunclist {
	width: 700rpx;
	box-sizing: border-box;
}

.one, .two {
	padding: 25rpx 25rpx 0;
	border-radius: 25rpx;
	background-color: #FFFFFF;
	margin-bottom: 40rpx;
	.one-top {
		font-size: 30rpx;
		font-weight: 600;
	}
	.one-bottom {
		text-align: center;
		padding: 30rpx 0 20rpx;
		display: flex;
		justify-content: space-around;
		.list {
			.num {
				font-size: 50rpx;
				font-weight: 800;
			}
			.text {
				margin-top: 10rpx;
				font-size: 20rpx;
				color: #b5b5b5;
			}
		}
	}
}
.two {
	.two-top {
		display: flex;
		justify-content: space-between;
		.left {
			font-size: 30rpx;
			font-weight: 600;
		}
		.right {
			font-size: 20rpx;
			color: #b5b5b5;
		}
	}
	.two-bottom {
		margin-top: 25rpx;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		text-align: center;
		.list{
			width: 135rpx;
			height: 140rpx;	
			.img {
				width: 60rpx;
				height: 60rpx;
			}
			.text {
				font-size: 20rpx;
				color: #b5b5b5;
			}
		}
	}
}

.unlist {
	.text {
		color: skyblue !important;
	}
}
</style>
